package com.skyon.rule.res.resource;

/**
 * 是对外服务的实现
 * 
 * @author cfans
 */
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.skyon.rule.res.model.PlotsInfo;
import com.skyon.rule.res.remoteInvoke.HandingInterface;
import com.skyon.rule.res.spring.PlotHandingHelper;

@Component("handingResource")
public class HandingResource implements HandingInterface {
	@Autowired
	private PlotHandingHelper plotHandingHelper;

	@Override
	public boolean handingNow() {
		return plotHandingHelper.handingNow();
	}

	@Override
	public PlotsInfo getPlotsInfo() {
		return plotHandingHelper.getPlotsInfo();
	}

	public void setPlotHandingHelper(PlotHandingHelper plotHandingHelper) {
		this.plotHandingHelper = plotHandingHelper;
	}
	
}
